import request, { getWebPath } from '@/utils/request';
import { isFakeData } from '../utils/utils';

export async function query() {
  return request('/api/users');
}

export async function queryCurrent() {
  if (isFakeData()) {
    return request(`/api/currentUser`);
  }
  //段大志修改
  return request(getWebPath('/sys/user/info'));
}
